package com.cnswhy.cloud.auth.properties;

import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

@Data
@SpringBootConfiguration //实质上为@Component的派生注解，用于将FebsAuthProperties纳入到IOC容器中。
@PropertySource(value = "classpath:cnswhy-auth.properties")
@ConfigurationProperties(prefix = "cnswhy.auth")
public class CnswhyAuthProperties {
    private CnswhyClientsProperties[] clientsProperties = {};
    private int accessTokenValiditySeconds = 60 * 60 * 24;
    private int refreshTokenValiditySeconds = 60 * 60 * 24 * 7;
    // 免认证路径
    private String anonUrl;
    private CnswhyValidateCodeProperties code = new CnswhyValidateCodeProperties();
}
